﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CommonLib {
    public struct Cell {
        public Vector3c vmin, vmax;
        public Vector3c extends, center;
        public Cell(Vector3c orgn, Vector3c dmns) {
            this.vmin = orgn;
            this.vmax = orgn;
            this.vmax.add(dmns);
            this.extends = dmns;
            this.extends.mul(0.5);
            this.center = orgn;
            this.center.add(this.extends);
        }
    }
}
